﻿<Window x:Class="ShoutCastManagerTest.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="388" Width="684">
    <Grid>
        <Grid.Resources>
            <BooleanToVisibilityConverter x:Key="BoolToVisConverter" />
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="20" />
        </Grid.ColumnDefinitions>
        <ListBox Grid.ColumnSpan="3" Name="lbFeedItems" SelectedItem="{Binding Path=SelectedFeedItem}" ItemsSource="{Binding Path=FeedItemList}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
                        <TextBlock Text="{Binding Path=Title}" Height="20" HorizontalAlignment="Stretch" />
                        <Image Width="20" Height="20" Source="Favorites.png" Visibility="{Binding Path=IsFavorite, Converter={StaticResource BoolToVisConverter} }" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Grid Grid.Row="1" Grid.Column="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="50" />
                <ColumnDefinition />
                <ColumnDefinition Width="10"/>
            </Grid.ColumnDefinitions>
            <Button Grid.Column="1" Height="23" Name="btnSearch" Click="btnSearch_Click">Search</Button>
            <TextBox Height="23" Grid.Column="2" Name="tbSearch" />
        </Grid>
        <Grid Grid.Row="1" Grid.Column="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="70" />
                <ColumnDefinition Width="60" />
            </Grid.ColumnDefinitions>
            <Button Grid.Column="0" Height="23" Name="btnPrev" Click="btnPrev_Click">&lt;</Button>
            <Button Grid.Column="1" Height="23" Name="btnNext" Click="btnNext_Click">&gt;</Button>
            <Button Grid.Column="2" Height="23" Name="btnPlay" Click="btnPlay_Click">Play</Button>
            <Button Grid.Column="3" Height="23" Name="btnStop" Click="btnStop_Click">Stop</Button>
            <Button Grid.Column="4" Height="23" Name="btnHome" Click="btnHome_Click">Home</Button>
            <Button Grid.Column="5" Height="23" Name="btnUpdate" Click="btnUpdate_Click">Update</Button>
            <Button Grid.Column="6" Height="23" Name="btnAddFav" Click="btnAddFav_Click">Toggle Fav</Button>
            <Button Grid.Column="7" Height="23" Name="btnFav" Click="btnFavs_Click">Favorites</Button>
        </Grid>        
    </Grid>
</Window>
